<?php include $this->templateDir . 'common/header.php'; ?>
<link rel="stylesheet" href="/static/css/admin.css">
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <!--左边盒子-->
        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">版本信息</div>
                        <div class="layui-car-body">
                            <div class="layui-carousel layadmin-carousel layadmin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 280px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审评论</h3>
                                                <p><cite>66</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审帖子</h3>
                                                <p><cite>12</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审商品</h3>
                                                <p><cite>99</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>待发货</h3>
                                                <p><cite>20</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">版本信息</div>
                        <div class="layui-car-body">
                            <div class="layui-carousel layadmin-carousel layadmin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 280px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审评论</h3>
                                                <p><cite>66</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审帖子</h3>
                                                <p><cite>12</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a  class="layadmin-backlog-body">
                                                <h3>待审商品</h3>
                                                <p><cite>99</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>待发货</h3>
                                                <p><cite>20</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--登录日志-->
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">登录日志</div>
                        <div class="layui-card-body">
                            <div class="layui-table-box" >
                                <!--登录日志表格-->
                                <table class="layui-table"  lay-size="sm">
                                    <thead class="layui-table-header">
                                    <tr>
                                        <th>ID</th>
                                        <th>登录邮箱</th>
                                        <th>登 录 I P</th>
                                        <th>登录状态</th>
                                        <th >登陆时间</th>
                                    </tr>
                                    </thead>
                                    <tbody class="layui-table-body layui-table-main">
                                    <?php foreach ($this->loginlog['0'] as $rows) { ?>
                                        <tr>
                                            <td><?php echo $rows['login_log_id']?></td>
                                            <td><?php echo $rows['login_log_email']?></td>
                                            <td><?php echo $rows['login_log_ip']?></td>
                                            <td><?php

                                                switch ($rows['login_log_type']){
                                                    case '1':
                                                        echo '<i class="layui-icon">&#x1006;</i> <span style="color:#900">用户名错误</span>';
                                                        break;
                                                    case "2":
                                                        echo '<i class="layui-icon">&#x1006;</i> <span style="color:#900">密码错误</span>';
                                                        break;
                                                    case "3":
                                                        echo '<i class="layui-icon">&#xe605;</i> <span style="color:#090">登录成功</span>';
                                                        break;
                                                    default:"";
                                                        break;
                                                }
                                                ?></td>
                                            <td><?php echo date("Y-m-d H:i:s",$rows['login_log_time']) ?></td>
                                        </tr>
                                    <?php } ?>
                                    </tbody>
                                </table>
                                <!--分页-->
                                <div class=" layui-table-page">
                                    <div class=" layui-laypage layui-laypage-default">
                                        <a href="<?php echo $this->loginlog[1]->firstPage;?>" class="layui-laypage-first" title="首页">首页</a>
                                        <a href="<?php echo $this->loginlog[1]->prePage;?>" class="layui-laypage-prev">上一页</a>
                                        <?php
                                        foreach($this->loginlog[1]->listPage as $k => $v){
                                            if($k == $this->loginlog[1]->currentPage){
                                                echo "<span class='layui-laypage-curr'><em class='layui-laypage-em'></em><em>".$k."</em></span>" ;
                                            }else{
                                                echo ' <a href="'.$v.'" data-page="'.$k.'">'.$k.'</a>';
                                            }
                                        }
                                        ?>
                                        <a href="<?php echo $this->loginlog[1]->nextPage;?>" class="layui-laypage-next" >下一页</a>
                                        <a href="<?php echo $this->loginlog[1]->lastPage;?>" class="layui-laypage-last" title="尾页">尾页</a>
                                        <span class="layui-laypage-count">共 <?php echo $this->loginlog['count'];?> 条</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--右边盒子-->
        <div class="layui-col-md4">
            <!--右侧从上到下算 第一个面板-->
            <div class="layui-card">
                <div class="layui-card-header">版本信息</div>
                <div class="layui-car-body">
                    <div class="layui-carousel layadmin-carousel layadmin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 280px;">
                        <div carousel-item="">
                            <ul class="layui-row layui-col-space10 layui-this">
                                <li class="layui-col-xs6">
                                    <a  class="layadmin-backlog-body">
                                        <h3>待审评论</h3>
                                        <p><cite>66</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-xs6">
                                    <a  class="layadmin-backlog-body">
                                        <h3>待审帖子</h3>
                                        <p><cite>12</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-xs6">
                                    <a  class="layadmin-backlog-body">
                                        <h3>待审商品</h3>
                                        <p><cite>99</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-xs6">
                                    <a href="javascript:;" class="layadmin-backlog-body">
                                        <h3>待发货</h3>
                                        <p><cite>20</cite></p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!--右侧从上到下算 第二个面板-->
            <div class="layui-card">
                <div class="layui-card-header">版本信息</div>
                <div class="layui-card-body">
                    <table class="layui-table layui-text" lay-size="sm">
                        <colgroup>
                            <col width="120">
                            <col>
                        </colgroup>
                        <tbody>
                        <tr><th colspan="2" class="layui-bg-gray" style="font-weight: bolder">框架版本</th></tr>
                        <tr> <td>phpGrace</td> <td>
                                <span class="layui-badge layui-bg-green">1.2.0</span>
                                <a style="margin-left: 10px;" target="_blank" href='https://gitee.com/liukuaizhuan/phpgrace/stargazers'><img src='https://gitee.com/liukuaizhuan/phpgrace/badge/star.svg?theme=dark' alt='star'></img></a>  </td>
                        </tr>
                        <tr> <td>layui</td> <td><span class="layui-badge layui-bg-green">2.6.8</span></td> </tr>
                        <tr> <td>Jquery</td> <td><span class="layui-badge layui-bg-green">1.3</span></td> </tr>
                        <tr> <td>本系统fakaGrace</td> <td><span class="layui-badge layui-bg-green">1.0.0</span> <a style="margin-left: 10px;" target="_blank" href='https://gitee.com/liukuaizhuan/fakaGrace'><img src="/static/images/widget_6.svg"></a></td> </tr>
                        <tr><th colspan="2" class="layui-bg-gray" style="font-weight: bolder">服务器信息</th></tr>
                        <tr> <td>&nbsp;操作系统</td> <td><span class="layui-badge layui-bg-blue"><?php echo $this->info['system'];?></span></td> </tr>
                        <tr> <td>&nbsp;解析引擎</td> <td><span class="layui-badge layui-bg-blue"><?php echo $this->info['yinqing'];?></span></td> </tr>
                        <tr> <td>&nbsp;&nbsp;mysql</td>  <td><span class="layui-badge layui-bg-blue"><?php echo $this->mysqlVersion;?></span></td> </tr>
                        <tr> <td>&nbsp;&nbsp;PHP版</td> <td><span class="layui-badge layui-bg-blue"><?php echo $this->info['phpversion'];?></span></td> </tr>
                        <tr><th colspan="2" class="layui-bg-gray" style="font-weight: bolder">空间信息</th></tr>
                        <tr> <td>服务器IP</td> <td><span class="layui-badge layui-bg-orange"><?php echo $this->info['serverip'];?></span></td> </tr>
                        <tr> <td>上传限制</td> <td><span class="layui-badge layui-bg-orange"><?php echo $this->info['maxuploade'];?></span></td> </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>